"""
这是一个用于展示字段的函数，该函数将字段分为四部分进行展示：基础信息、第一轮面试记录、第二轮面试（专业复试）、HR复试。

Parameters:
default_fieldsets (tuple): 一个包含四个元组的元组，每个元组代表一个字段集，其中第一个元素是字段集的名称，第二个元素是一个字典，字典中包含了该字段集需要展示的所有字段。

"""

# 分组展示字段，基础信息、第一轮面试记录、第二轮面试（专业复试）、HR复试
default_fieldsets = (
    (None, {'fields': (
    "userid", ("username", "city", "phone"), ("email", "apply_position", "born_address", "gender", "candidate_remark"),
    ("bachelor_school", "master_school", "doctor_school"), ("major", "degree"), "test_score_of_general_ability",
    "paper_score",)}),
    ('第一轮面试', {'fields': (
    ("first_score", "first_learning_ability", "first_professional_competency"), "first_advantage", "first_disadvantage",
    "first_result", "first_recommend_position", "first_interviewer_user", "first_remark",)}),
    ('第二轮面试（专业复试）', {'fields': ("second_score", ("second_learning_ability", "second_professional_competency"), (
    "second_pursue_of_excellence", "second_communication_ability", "second_pressure_score"), "second_advantage",
                                "second_disadvantage", "second_result", "second_recommend_position",
                                "second_interviewer_user", "second_remark",)}),
    ('HR复试', {'fields': (
    "hr_score", ("hr_responsibility", "hr_communication_ability", "hr_logic_ability"), ("hr_potential", "hr_stability"),
    "hr_advantage", "hr_disadvantage", "hr_result", "hr_interviewer_user", "hr_remark",)}),
)

default_fieldsets_first = (
    (None, {'fields': ("userid", ("username", "city", "phone"),
                       ("email", "apply_position", "born_address", "gender", "candidate_remark"),
                       ("bachelor_school", "master_school", "doctor_school"), ("major", "degree"),
                       "test_score_of_general_ability", "paper_score",)}),
    ('第一轮面试', {'fields': (
        ("first_score", "first_learning_ability", "first_professional_competency"), "first_advantage",
        "first_disadvantage", "first_result", "first_recommend_position", "first_interviewer_user", "first_remark",)}),
)

default_fieldsets_second = (
    (None, {'fields': ("userid", ("username", "city", "phone"),
                       ("email", "apply_position", "born_address", "gender", "candidate_remark"),
                       ("bachelor_school", "master_school", "doctor_school"), ("major", "degree"),
                       "test_score_of_general_ability", "paper_score",)}),
    ('第一轮面试', {'fields': (
        ("first_score", "first_learning_ability", "first_professional_competency"), "first_advantage",
        "first_disadvantage", "first_result", "first_recommend_position", "first_interviewer_user", "first_remark",)}),
    ('第二轮面试（专业复试）', {'fields': ("second_score", ("second_learning_ability", "second_professional_competency"), (
        "second_pursue_of_excellence", "second_communication_ability", "second_pressure_score"), "second_advantage",
                                "second_disadvantage", "second_result", "second_recommend_position",
                                "second_interviewer_user", "second_remark",)}),
)